<?php
/* @var $this GroupController */

$this->pageTitle=Yii::app()->name.'-发布话题';
?>

<h1>发表新话题</h1>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm',array(
	'id'=>'topic-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
));?>
<div class="row">
	<?php echo $form->labelEx($topic,'title');?>
	<?php echo $form->textField($topic,'title');?>
	<?php echo $form->error($topic,'title');?>
</div>

<div class="row">
	<?php echo $form->labelEx($topic,'content');?>
	<?php echo $form->textArea($topic,'content');?>
	<?php echo $form->error($topic,'content');?>
</div>

<div class="row buttons">
	<?php echo CHtml::submitButton('发布');?>
</div>

<?php $this->endWidget();?>
</div><!--form-->
